/*
 * import_data.h
 *
 *  Created on: May 27, 2011
 *      Author: nzhao
 */

#ifndef IMPORT_DATA_H_
#define IMPORT_DATA_H_

#include "share/Usrdef.h"
#include "share/MR_DATA.h"
#include "core/globalvars.h"
#include "share/parameters.h"
#ifdef NV_CENTER
#include "special/material_NV.h"
#endif

#ifdef SiC_4H
#include "special/material_4HSiC.h"
#endif

//////////////////////////////////////////////////////////////////////////////////////////////////////////
/**\defgroup IMPORT_DATA Import Data
 *  @{*/

/////////////////////////////////////////////////////////////////////////////////
/*!@name Hyperfine Coupling Data by First Principle
 * These variables store the hyperfine coupling data obtained by first principle calculations.
 */
///@{
extern double	* RELAX_COORD;				/**< relaxed coordinates by FP*/
extern double	** HF_MAT_FIRSTPRINCIPLE;	/**< hf interaction strength by FP*/
extern int		N_ATOM_FIRSTPRINCIPLE;		/**< atom number in supercell in FP*/
///@}

/////////////////////////////////////////////////////////////////////////////////
/*!@name Bath Spin Coordinates
 * These variables specify coordinates of the each bath spins.
 */
///@{
extern double 	* RELATIVE_GAMMA_N;
///@}


void	import_data();						/**<Import data from files*/
void	import_coordinates();				/**<Import bath spin coordinates*/
void 	read_FP_data();						/**<Read First Principle data*/
void  	GetProperties(char * element, int i);	/**<Get nuclear spin properties*/
int		isNear(int idx);						/**<Determine whether a nuclear spin is in the FP data*/
/**@}*/

#endif /* IMPORT_DATA_H_ */
